package com.silverbox.shopper.mapper;

import com.silverbox.shopper.entity.Rule;
import com.silverbox.sweeporder.controller.index.vo.PromotionInfoVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RuleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Rule record);

    int insertSelective(Rule record);

    Rule selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Rule record);

    int updateByPrimaryKey(Rule record);

    List<PromotionInfoVO> findStorePromotionInfoList(@Param("storeId") Integer storeId ,@Param("nowTime") String nowTime);
}